<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="${pageContext.request.contextPath }/ueditor/themes/default/css/ueditor.css" type="text/css" rel="stylesheet">
<link
	href="${pageContext.request.contextPath }/css/bootstrap/bootstrap.min.css"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath }/css/designer/designer-User.css"
	rel="stylesheet">
<title></title>
</head>
<body>
<body>
	<c:if test="${msg!=null }">
		<script type="text/javascript">
		alert("${msg}");
		</script>
	</c:if>
	<form action="${pageContext.request.contextPath }/information/publishInfomation.do" method='post'>
			<input type="hidden" name="release_id" value="${user_id}">
			<div class="addPhoto">
				<span>标题：</span> <input type="text" class="input" name="title" />
			</div>
			<div class="range">
				<span>分类：</span> <select name="type_code">
				<c:if test="${infomation_type!=null}">
					<c:forEach var="infomation_type" items="${infomation_type}">
						<option value="${infomation_type.code}">${infomation_type.value}</option>
					</c:forEach>
				</c:if>
					
				</select>
			</div>

		<script id="container" name="content"  type="text/plain" >
        	这里写你的初始化内容
   		</script>
		<div>
			<button class="btn btn-info" value="submit">提交</button>
		</div>

	</form>
	<!-- 配置文件 -->
	<script type="text/javascript"
		src="${pageContext.request.contextPath }/ueditor/ueditor.config.js"></script>
	<!-- 编辑器源码文件 -->
	<script type="text/javascript"
		src="${pageContext.request.contextPath }/ueditor/ueditor.all.js"></script>
	<!-- 实例化编辑器 -->
	<script type="text/javascript">

		var ue = UE.getEditor('container',{
			//autoWidthEnabled:true,
			autoClearinitialContent: true, //focus时自动清空初始化时的内容
	        initialFrameWidth : 898,
	        initialFrameHeight: 400,
	        autoHeightEnabled :false,
	        pageBreakTag:'_ueditor_page_break_tag_'
	    }); 
    	
	</script>
</body>
</html>
